]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Set WindowPreview offscreen redirect inside constructor
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 4 Jun 2020 15:15:45 +0000 (17:15 +0200)
committerJonas Dreßler <verdre@v0yd.nl>
Tue, 16 Jun 2020 11:55:17 +0000 (13:55 +0200)
This can also be moved to constructor, so do it.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1307

js/ui/workspace.js

index c7d9d81666287c7286f829ef8c0cb35e6b286d96..7370a137a91278a103ea55cf54e98d0360d0a163 100644 (file)
@@ -214,6 +214,7 @@ var WindowPreview = GObject.registerClass({
             reactive: true,
             can_focus: true,
             accessible_role: Atk.Role.PUSH_BUTTON,
+            offscreen_redirect: Clutter.OffscreenRedirect.AUTOMATIC_FOR_OPACITY,
         });
 
         this._windowContainer = new Clutter.Actor();
@@ -224,8 +225,6 @@ var WindowPreview = GObject.registerClass({
         this._windowContainer.layout_manager = new WindowPreviewLayout();
         this.add_child(this._windowContainer);
 
-        this.set_offscreen_redirect(Clutter.OffscreenRedirect.AUTOMATIC_FOR_OPACITY);
-
         this._addWindow(realWindow.meta_window);
 
         this._delegate = this;